<div class="food-page">
	<div class="banner"></div>
    <div class="food_goodlist ">
		
            	<?php $nums = 0;?>
                <?php foreach ($home_goods as $good): ?>
                	<?php 
						if($nums == 6){
                			echo '</div></div><div class="clearfix"></div></div><div class="bg_green"><div class="container"><div class="body row">';
                		}				
					?>
                	<?php 
                	if($nums == 0){
                		echo '<div class="bg_orange"><div class="container"><div class="body row">';
                	}
                	?>
                	
                	<?php if($nums < 2 || ($nums > 5 && $nums < 8)):?>
						<?php include $this->getViewFile('../lib/food_half_goodlist'); ?>
					<?php else:?>
						<?php include $this->getViewFile('../lib/food_goodlist'); ?>
					<?php endif;?>
					
					
					
					<?php $nums++;?>
                <?php endforeach; ?>
                </div>
            </div>
            <div class="clearfix"></div>
			<div class="pager" id="pager">
				<?php echo $pages ?>
			</div>
			
			<div class="bg_orangered">
				<div class="container">
					<a class="footer_banner" href="<?php echo $this->createUrl('/front/index/tmall'); ?>" target="_blank">
						<img alt="天猫专场" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/cat/food_tmall.jpg">
					</a>
					<a class="last_footer_banner" href="<?php echo $this->createUrl('/front/index/qing'); ?>" target="_blank">
						<img alt="秋冬新款" src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/front/cat/food_qing.png">
					</a>
				</div>
			</div>
        </div>
       
    </div>
    
</div>